<?php

namespace App\Models;


use App\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WebsiteSetting extends Model
{
    use HasFactory, HasDateTimeFormatter;

    protected $table = 'website_setting';

    protected $casts =[
        'value' => 'array'
    ];

    public function org() {
        return $this->hasOne(WebsiteCity::class, 'org_code', 'org_code');
    }

}
